You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLMtxVec Class > TOpenCLMtxVec Methods > AddScaled Method > TOpenCLMtxVec.AddScaled Method ([In] TOpenCLMtxVec, [In] double, int, int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLMtxVec.AddScaled Method ([In] TOpenCLMtxVec, [In] double, int, int, int)

Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].

Syntax
C#
Visual Basic
public TOpenCLMtxVec AddScaled([In] TOpenCLMtxVec Vec, [In] double aScale, int VecIndex, int Index, int Len);

In addition, the following formula is being used: 

result = result+ Cplx(aScale)*Vec  

An exception is raised if array borders are overrun.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!